home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-01-20 | 1.4 KB | 63 lines | [TEXT/KAHL] |
-
- enum
- {
- iShowPreferences = 1,
- iHideOnLaunch,
- iNeither,
- iRequeue,
- iCancelCurrent,
- iCancelQueue,
- iNameOfFile,
- iQueueLength
- };
-
- class muZaksettings
- {
- public:
- short wie_van_de_drie;
- Boolean requeue_after_playing;
- };
-
- typedef preferences<muZaksettings> muZakPrefs;
-
- #pragma template preferences<muZaksettings>;
-
- typedef queue<AliasHandle> alias_queue;
-
- #pragma template queue<AliasHandle>;
-
- class muZakshell : public boxmaker, public muZakPrefs, public alias_queue
- {
- public:
- muZakshell( Str255 prefsFileName,
- muZaksettings &defaultsettings, unsigned long queueLength);
- ~muZakshell();
-
- protected:
- virtual void OpenDoc( Boolean opening);
- virtual void OpenApp() {}; // do not show preferences on OAPP
- virtual void HandleDialogEvent( short itemHit, DialogPtr theDialog);
- //
- // for added speed we return false from 'mayEnterFolder' when the
- // queue is full.
- //
- virtual Boolean mayEnterFolder( Boolean opening);
-
- virtual Boolean EventloopHook();
-
- void StartAMovie();
- void StopCurrentMovie( Boolean dispose_of_alias = true);
- void SetButtons();
- void SetRequeueButton();
- void updateName( Str63 theName);
- void updateNumber();
-
- private:
- Movie theMovie;
- short theMovieFile;
- AliasHandle theAlias;
- };
-
- pascal OSErr MyCoverProc( Movie theMovie, RgnHandle changedRgn, long refcon);
- pascal OSErr MyUncoverProc( Movie theMovie, RgnHandle changedRgn, long refcon);
-